// import { ref } from 'vue';

import { ref } from "vue";

export default function useLoading2(initValue = false) {
  const loading2 = ref(initValue);
  const setLoading2 = (value: boolean) => {
    loading2.value = value;
  };
  const toggle = () => {
    loading2.value = !loading2.value;
  };
  return {
    loading2,
    setLoading2,
    toggle,
  };
}